<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/jsp/base/taglibs.jsp"%>
<%@include file="/WEB-INF/jsp/base/head.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>新闻分类列表</title>
</head>
<body>
	<s:form id="form1" namespace="/newssort"
		action="newsSortAction!getNewsSorts" method="post">
		<input type="hidden" id="addURL"
			value="newssortAction!getNewsSortAdd.do" />
		<input type="hidden" id="delURL"
			value="newssortAction!newsSortDelete.do" />
		<input type="hidden" id="editURL"
			value="newssortAction!getNewsSortEdit.do" />

		<div class="center_main">
			<div id="btn-option"
				style="padding-left: 10px; margin: 0px; float: none;">
				<a class="add-btn" id="add" href="javascript:void(0);" title="新增">新增</a>
				<a class="edit-btn" id="edit" href="javascript:void(0);" title="修改">修改</a>
				<a class="del-btn" id="delete" href="javascript:void(0);" title="删除">删除</a>
			</div>
			<div class="center_left"></div>
		</div>
		<div id="page-top">
			<span>新闻分类列表</span> <b></b><i></i>
		</div>

		<div id="page">
			<div id="item-list">
				<table>
					<thead>
						<tr>
							<th>选择<input type="checkbox" id="selectAll" /></th>
							<th>编号</th>
							<th>分类名称</th>
							<th>说明</th>
						</tr>
					</thead>
					<tbody>
						<s:iterator value="sortlist" status="newssort">
							<tr>
								<td><input type="checkbox" class="classCheckbox"
									name="sortlist[${newssort.index}].id" value="${id}" /></td>
								<td>${id}</td>
								<td>${name}</td>
								<td>${intro}</td>
							</tr>
						</s:iterator>
						<s:if test="sortlist == null || sortlist.size == 0">
							<tr>
								<td colspan="5"><span class="spanRB">数据暂无!</span></td>
							</tr>
						</s:if>
					</tbody>
				</table>
			</div>
		</div>
	</s:form>
	<div id="page-bottom"></div>
</body>
</html>